<template>
  <view class="go_back_wrap" @click="clickBack"></view>
</template>

<script setup lang="ts">
const props = defineProps({
  backNumber: {
    type: Number,
    default: () => {
      return -1;
    },
  },
});

const clickBack = () => {
  // #ifdef H5
  history.go(props.backNumber);
  // #endif
  // uni.navigateBack({
  //   delta: 1
  // });
};
</script>

<style lang="scss" scoped>
.go_back_wrap {
  position: fixed;
  bottom: 56rpx;
  right: 20rpx;
  width: 102rpx;
  height: 105rpx;
  background-image: url('@/common/images/icon/back.png');
  background-size: cover;
}
</style>
